﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetRealNameByUsername_V2]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetRealNameByUsername_V2];
GO
CREATE PROCEDURE [dbo].[sproc_GetRealNameByUsername_V2]
    @Username nvarchar(100)
AS
BEGIN
SET NOCOUNT ON;

SELECT Realname FROM dbo.UDS_Staff WHERE Staff_Name = @Username;

END
GO
